<html>
<head>
     <title>Help: allstats</title>
</head>
<body>
     <center><table><tbody>
          <tr>
             <td style="border: 1px solid rgb(170, 170, 170); padding: 5px; background-color: #fff;">
                  <h4>allstats</h4>STATM Compute statistics from 2 series
                  <br><small>Last modified: 10-Feb-2010 11:24:47</small>

          </tr>
          <tr>
             <td style="border: 0px solid rgb(170, 170, 170); padding: 5px; background-color: #fff;">
                  <a href="http://guillaumemaze.googlecode.com/svn/trunk/matlab/codes/stats/allstats.m">Download here</a>
             </td>
          </tr>
          <tr>
             <td style="border: 1px solid rgb(170, 170, 170); padding: 5px; background-color: #ddd; font-size:12px;">
                  <br>% STATM Compute statistics from 2 series<br>%<br>% STATM = allstats(Cr,Cf)<br>%<br>% Compute statistics from 2 series considering Cr as the reference.<br>% <br>% Inputs:<br>%	Cr and Cf are of same length and uni-dimensional. They may contain NaNs.<br>%<br>% Outputs:<br>% 	STATM(1,:) => Mean<br>% 	STATM(2,:) => Standard Deviation (scaled by N)<br>% 	STATM(3,:) => Centered Root Mean Square Difference (scaled by N)<br>% 	STATM(4,:) => Correlation<br>%<br>% Notes:<br>%	- N is the number of points where BOTH Cr and Cf are defined<br>%<br>% 	- NaN are handled in the following way: because this function<br>% 		aims to compair 2 series, statistics are computed with indices<br>%		where both Cr and Cf are defined.<br>%<br>% 	- STATM(:,1) are from Cr (ie with C=Cr hereafter)<br>% 	  STATM(:,2) are from Cf versus Cr (ie with C=Cf hereafter)<br>%<br>%	- The MEAN is computed using the Matlab mean function.<br>%<br>%	- The STANDARD DEVIATION is computed as:<br>%			          /  sum[ {C-mean(C)} .^2]  \<br>%			STD = sqrt|  ---------------------  |<br>%			          \          N              /<br>%<br>%	- The CENTERED ROOT MEAN SQUARE DIFFERENCE is computed as:<br>%			           /  sum[  { [C-mean(C)] - [Cr-mean(Cr)] }.^2  ]  \<br>%			RMSD = sqrt|  -------------------------------------------  |<br>%			           \                      N                        /<br>%<br>%	- The CORRELATION is computed as:<br>%			      sum( [C-mean(C)].*[Cr-mean(Cr)] ) <br>%			COR = --------------------------------- <br>%			              N*STD(C)*STD(Cr)<br>%<br>%	- STATM(3,1) = 0 and STATM(4,1) = 1 by definition !<br>%<br>% Created by Guillaume Maze on 2008-10-28.<br>% Rev. by Guillaume Maze on 2010-02-10: Add NaN values handling, some checking<br>%				in the inputs and a more complete help
             </td>
          </tr>
          <tr>
             <td style="border: 1px solid rgb(170, 170, 170); padding: 5px; background-color: #fff; font-size:12px;">
                  Last update: 2011 March 04, 17:46<br>
                  Created by Guillaume Maze<br>
                  More informations at: <a href="http://codes.guillaumemaze.org/matlab">codes.guillaumemaze.org/matlab</a><br>
             </td>
          </tr>
     </tbody></table></center>
</body>
</html>
